From d0263f0fa43f5fc7855cf4ba5687f58f670ced06 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Mon, 3 Apr 2006 18:39:21 +0100 Subject: [PATCH] Fix cpus string parsing, wrt use of ^ to remove elements. Patch from Satoshi Uchida . Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendDomainInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 43f96e3d3c..1fc9137e40 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -333,7 +333,7 @@ def parseConfig(config): else: # remove this element from the list if c[0] == '^': - cpus = [x for x in cpus if x != int(c[1])] + cpus = [x for x in cpus if x != int(c[1:])] else: cpus.append(int(c)) -- 2.30.2